#define CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int y,m,d;
	scanf_s("%4d%2d%2d", &y, &m, &d);
	if (y >= 1990 && y <= 2015)
	{
		printf("year=%d\n", y);
		if (m < 10)
		{
			printf("month=0%d\n", m);
		}
		else if(m>=10&&m<=12)
		{
			printf("month=%d\n", m);
		}
		if (d < 10)
		{
			printf("day=0%d\n", d);
		}
		else if(d>=10&&d<=30)
		{
			printf("day=%d\n", d);
		}
	}
	return 0;
	
}